import Vue from 'vue'
new Vue({
  el: '#root',
  template: `
  <div>{{getName}}</div>
  `,
  data: {
    firstname: 'zhang',
    lastname: 'san'
  },
  computed: {
    getName () {
      return this.firstname + this.lastname
    }
  }
})
